<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/26
 * Time: 14:21
 */
namespace app\admin\model;

use think\Model;

class AuthGroup extends Model {

    protected $autoWriteTimestamp = true;

    public static function getRuleGroupAll($page,$limit){
        $data = self::paginate($limit,true,['page'=>$page]);
        $count = $data->count();
        return ['data'=>$data,'count'=>$count];
    }

    public static function addUserGroup($data){
        return self::create($data);
    }


}